package com.woniu.park.service.impl;

import com.woniu.park.dao.CommonMapper;
import com.woniu.park.pojo.Common;
import com.woniu.park.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 张洛诚
 * @date 2019/8/28 20:15:52
 * @description
 */
@Service
public class CommonServiceImpl implements CommonService {

    @Autowired
    CommonMapper commonMapper;
    @Override
    public Common getCommmonById(Integer commonId) {
        Common common = commonMapper.selectByPrimaryKey(commonId);
        return common;
    }
}
